﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Stat/MasterPage.master" AutoEventWireup="true"
    CodeFile="EmpStat.aspx.cs" Inherits="Stat_EmpStat" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../CMS/Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        .tb td
        {
            border: #fff solid 1px;
            font-size: 13px;
        }
        .paginator
        {
            font: 11px Arial, Helvetica, sans-serif;
            padding: 10px 20px 10px 0;
            margin: 0px;
            width: 650px;
        }
        .paginator a
        {
            padding: 1px 6px;
            border: solid 1px #ddd;
            background: #fff;
            text-decoration: none;
            margin-right: 2px;
        }
        .paginator a:visited
        {
            padding: 1px 6px;
            border: solid 1px #ddd;
            background: #fff;
            text-decoration: none;
        }
        .paginator .cpb
        {
            padding: 1px 6px;
            font-weight: bold;
            font-size: 13px;
            border: none;
        }
        .paginator a:hover
        {
            color: #fff;
            background: #ffa501;
            border-color: #ffa501;
            text-decoration: none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 100px;">
                统计类型：
            </td>
            <td width="500px" colspan="3">
                年：<asp:TextBox ID="txtYears" runat="server" onfocus="WdatePicker({dateFmt:'yyyy'})"
                    Width="100px" class="Wdate" /></asp:TextBox> 月：<asp:TextBox ID="txtMonths" runat="server"
                        onfocus="WdatePicker({dateFmt:'MM'})" Width="100px" class="Wdate" /></asp:TextBox>
                日：<asp:TextBox ID="txtDays" runat="server" onfocus="WdatePicker({dateFmt:'dd'})"
                    Width="100px" class="Wdate" /></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 60px;">
                人员：
            </td>
            <td width="160px">
                <uc1:SelUser ID="SelUser1" runat="server" />
            </td>
            <td width="300px">
                IP地址：<asp:TextBox ID="ipAdd" runat="server"></asp:TextBox>
            </td>
            <td style="text-align: right; margin-right: 20px;" colspan="2">
                <asp:Button ID="Button1" runat="server" Text=" 查 询 " CssClass="btn" OnClick="Button1_Click" />
            </td>
        </tr>
    </table>
    <div style="text-align: right; font-size: 13px; padding: 10px;">
        <span>当前条件记录数：<asp:Label ID="nct" runat="server" Text="" ForeColor="Green" Font-Bold="true"></asp:Label></span> <span
            style="margin-left: 20px">总记录数：<asp:Label ID="act" runat="server" Text="" ForeColor="Red" Font-Bold="true"></asp:Label></span></div>
    <div style="border: solid 2px #b7ddf2; background: #ebf4fb; padding: 10px;" runat="server"
        id="DivContent">
        <asp:Repeater ID="RptChatList" runat="server">
            <HeaderTemplate>
                <table cellspacing="0" cellpadding="5" width="100%" border="0" class="tb">
                    <tr bgcolor="#cee6ff">
                        <td style="width: 5%">
                            编号
                        </td>
                        <td style="width: 10%">
                            员工姓名
                        </td>
                        <td style="width: 20%">
                            IP
                        </td>
                        <td style="width: 10%">
                            年份
                        </td>
                        <td style="width: 10%">
                            月份
                        </td>
                        <td style="width: 10%">
                            日
                        </td>
                        <td style="width: 10%">
                            浏览器类型
                        </td>
                        <td style="width: 15%">
                            操作系统类型
                        </td>
                        <td style="width: 10%">
                            访问次数
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem,"id") %>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "empname")%>
                    </td>
                    <td style="color: Red">
                        <%#DataBinder.Eval(Container.DataItem,"ip") %>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem,"years") %>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem,"months") %>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem,"days") %>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "browsername")%>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "systemname")%>
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "sumNum")%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <br />
    <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb" ID="apg"
        runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
        UrlPaging="True" Width="99%" HorizontalAlign="Right">
    </webdiyer:AspNetPager>
</asp:Content>
